Skip to content

Conversation

@diskshima
Copy link
Owner

Summary

This PR updates the build configuration to reflect the module rename from NewCommandLineParser to CommandLineParser, following the migration to optparse-applicative in PR #90.

Changes

  • Updated gwcli.cabal: Removed NewCommandLineParser from exposed-modules list, keeping only CommandLineParser
  • Added cabal.project.freeze: Lock file for reproducible builds with GHC 9.12.1 and Cabal 3.14
    • Ensures all developers and CI use the same dependency versions
    • Locks transitive dependencies to prevent unexpected version conflicts
    • Index state: 2025-09-28T05:10:57Z

Testing

  • ✅ Project builds successfully with cabal build
  • ✅ No functional changes

Related

Part 1 of cleanup for #90 (build configuration)
Part 2 will handle code cleanup (stacked PR)

🤖 Generated with Claude Code

…onfig

Update the gwcli.cabal file to reflect the module rename from
NewCommandLineParser to CommandLineParser, removing the old module
from the exposed-modules list.

Also add cabal.project.freeze to lock dependency versions for
reproducible builds with GHC 9.12.1 and Cabal 3.14.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
diskshima and others added 2 commits October 11, 2025 16:46
* Refactor: Clean up code after optparse-applicative migration

This commit performs code cleanup following the migration to
optparse-applicative in PR #90:

**Module Changes:**
- Rename NewCommandLineParser.hs to CommandLineParser.hs
- Remove old GetOpt-based CommandLineParser module

**Main.hs Cleanup:**
- Update import from NewCommandLineParser to CommandLineParser
- Remove obsolete comments ("Old...", "Refactored...", "TODO...")
- Remove commented-out imports (System.Console.GetOpt, System.Environment)
- Improve code formatting and consistency
- Remove unnecessary blank lines
- Align guard clauses in remoteUrlToRemote

All changes maintain backward compatibility while improving code
readability and maintainability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Bump version to 0.9.8.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Add changelog entries documenting the refactoring work:
- Module renaming (NewCommandLineParser to CommandLineParser)
- Removal of old GetOpt-based parser
- Code cleanup and formatting improvements
- Maintainability improvements after optparse-applicative migration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@diskshima diskshima merged commit f9756b8 into main Oct 11, 2025
2 checks passed
@diskshima diskshima deleted the refactor-module-naming-pr90 branch October 11, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant